package com.codeoss.module.test.pagebean;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.codeoss.framework.context.YunContext;
import com.codeoss.framework.view.component.Message;
import com.codeoss.framework.view.pagebean.mobile.MListViewPageBean;
import com.codeoss.module.test.model.TestTest1;
import com.codeoss.module.test.service.ITestTest1Service;

@Service("mobileTestTest1ListViewPageBean")
public class MobileTestTest1ListViewPageBean extends MListViewPageBean{
	@Autowired
	private ITestTest1Service testTest1Service;
	@Transactional
	public void testBatch(Map<String,Object> paraMap){
		YunContext yunContext = YunContext.getCurrentContext();
		TestTest1 testTest1=testTest1Service.getById((Long)getCurrentKeyValue());
		testTest1.setTestText((String)paraMap.get("test_text"));
		testTest1Service.update(testTest1);
		yunContext.addMessage(new Message("处理成功"));
		dataSearch();
	}
}
